/**
 * Created by dukes on 2016/3/2.
 */
class GuildTabRender extends eui.Component{
    public constructor(){
        super();
        this.skinName = "skins.scene.elements.GuildTabSkin";
    }
    private state_0:eui.Image;
    private state_1:eui.Image;
    public partAdded(name:string, instance:any){
        super.partAdded(name, instance);
        if( name == "state_0"){
            this.state_0 = instance;
        }else if( name == "state_1"){
            this.state_1 = instance;
        }
    }

    public childrenCreated(){
        super.childrenCreated();
        // this.state_0.source = RES.getRes("img_g_"+this.itemIndex+"_1");
        // this.state_1.source = RES.getRes("img_g_"+this.itemIndex+"_0");
    }
}